package demo1;

/**
 * 测试类，用于演示学生入校的办理流程
 */
public class Test {
    public static void main(String[] args) {
        // 添加学生信息
        StudentInfo.addStudent("1801210420", "张昊", "男", "123456789012345678");
        StudentInfo.addStudent("1801210421", "陈中天", "男", "234567890123456789");

        // 显示学生信息
        StudentInfo.displayStudentInfo("张昊");
        StudentInfo.displayStudentInfo("陈中天");

        // 签到
        RegistrationCheckIn.checkIn("张昊");
        RegistrationCheckIn.checkIn("陈中天");

        // 显示报到信息
        RegistrationCheckIn.displayCheckInInfo("张昊");
        RegistrationCheckIn.displayCheckInInfo("陈中天");

        // 申请入住
        AccommodationRegistration.applyForAccommodation("张昊", "A栋101");
        AccommodationRegistration.applyForAccommodation("陈中天", "B栋202");

        // 办理入住
        String roomCard1 = AccommodationRegistration.checkInAccommodation("张昊");
        String roomCard2 = AccommodationRegistration.checkInAccommodation("陈中天");
        System.out.println(roomCard1);
        System.out.println(roomCard2);

        // 领取资源
        ResourceDistribution resourceDistribution = new ResourceDistribution();
        Resource schoolResource = new SchoolResource("教材", "学习资料");
        ResourceDistribution.distributeResource(schoolResource);
        ResourceDistribution.receiveResource(schoolResource);
    }
}